#ifndef HPLC_ZKYS_PARSEPACKET_H
#define HPLC_ZKYS_PARSEPACKET_H

#include "baseparsepacket.h"
#include "hplczkyssendcommonpacket.h"
#include "modulehplcdefine.h"

namespace hplc
{
namespace zkys
{

class HplcZkysProtocolCommonData;
class HplcZkysParseCommonPacket : public ::BaseParsePacket
{
    Q_OBJECT
public:
    HplcZkysParseCommonPacket(HplcZkysProtocolCommonData &data, hplc::CommonParam &param, QObject *parent = nullptr);
    virtual ~HplcZkysParseCommonPacket() override;

    virtual void parse() override;

    virtual void parseSet(quint8 pfc, char *data, int len);
    virtual void parseGet(quint8 pfc, char *data, int len);

    HplcZkysSendCommonPacket *getSender();

protected:
    hplc::CommonParam			*m_param = nullptr;
};

} // zkys
} // hplc

#endif // HPL_ZKYS_CPARSEPACKET_H
